package com.hl.sfzy.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 咨询预约表

 * @TableName appointment
 */
//id long主键
// createTime date咨询时间
// content varchar咨询内容
// consult_id long咨询师id(外键)
// user_id long用户id(外键)
// reply varchar回复信息回复时间
// status int0[默认] 未完成  1 已回复  2 未评价   3 已评价
    @Data
    @NoArgsConstructor
    @AllArgsConstructor
public class Appointment {
    /**
     * 编号
     */
    private Long id;
    /**
     * 咨询时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date createTime;
    /**
     * 咨询内容
     */
    private String content;
    /**
     * 咨询师id(外键)
     */
    private Long consultantId;
    /**
     * 用户id(外键)
     */
    private Long userId;
    /**
     * 回复信息回复时间
     */
    private String reply;
    /**
     * 0[默认] 未完成  1 已回复  2 未评价   3 已评价
     */

    private Integer status;

//    咨询师
    private Consultants consultants;

    public Long getId() {
        return id;
    }
    public void setId(Long id) {
        this.id = id;
    }
    public Date getCreateTime() {
        return createTime;
    }
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
    public String getContent() {
        return content;
    }
    public void setContent(String content) {
        this.content = content;
    }
    public Long getConsultId() {
        return consultantId;
    }
    public void setConsultId(Long consultId) {
        this.consultantId = consultId;
    }
    public Long getUserId() {
        return userId;
    }
    public void setUserId(Long userId) {
        this.userId = userId;
    }
    public String getReply() {
        return reply;
    }
    public void setReply(String reply) {
        this.reply = reply;
    }
    public long getStatus() {
        return status;
    }
    public void setStatus(Integer status) {
        this.status = status;
    }
}
